package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.entity.CoursePub;

import java.util.Map;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-17
 */
public interface CoursePubService extends IService<CoursePub> {
    /**
     * 课程预览
     * @param
     * @return Map 数据模型 Map
     */
    Map<String, Object> previewCourse(Long courseBaseId, Long companId);

    /**
     * @Description
     * 课程发布
     * @Date 2021/12/19 11:12
     * @Param [courseId, companyId] 课程id个教育机构id
     * @return void
     **/
    void publish(Long courseId, Long companyId);
}
